{volist name="comment_res.list" id="cmt"}
  <li class="media">
    <div class="media-left">
      <a href="javascript:void(0);">
        <img class="media-object img-circle" src="{$cmt.user_avatar|show_user_avatar_url=###}" alt="{$cmt.user_nickname}">
      </a>
    </div>
    <div class="media-body media-comment">
      <?php if(!empty($current_user) && $cmt['user_id'] == $current_user['id']): ?>
        <a href="javascript:void(0);" onclick="showDelCommentModal(this);" data-id="{$cmt.id}" class="btn btn-danger btn-xs pull-right rounded">删除</a>
      <?php elseif(!empty($current_user)): ?>
        <a href="javascript:void(0);" onclick="showReplyForm(this);" data-id="{$cmt.id}" class="btn btn-theme btn-xs pull-right rounded">回复</a>
      <?php endif; ?>
      <h4>{$cmt.user_nickname}</h4>
      <small class="text-muted">
        {$cmt.create_time|format_show_time=###,'no_second'}
      </small>
      <div class="comment-content">
        <p>{$cmt.content}</p>
        {volist name="cmt.children" id="cmt_child"}
          <div class="media">
            <div class="media-left">
              <a href="javascript:void(0);">
                <img class="media-object img-circle" src="{$cmt_child.user_avatar|show_user_avatar_url=###}" alt="{$cmt_child.user_nickname}">
              </a>
            </div>
            <div class="media-body">
              <?php if(!empty($current_user) && $cmt_child['user_id'] == $current_user['id']): ?>
                <a href="javascript:void(0);" onclick="showDelCommentModal(this);" data-id="{$cmt_child.id}" class="btn btn-danger btn-xs pull-right rounded">删除</a>
              <?php endif; ?>
              <h4>{$cmt_child.user_nickname}</h4>
              <small class="text-muted">
                {$cmt_child.create_time|format_show_time=###,'no_second'}
              </small>
              <p>{$cmt_child.content}</p>
            </div><!-- media-body -->
          </div>
        {/volist}
        <div class="reply-container">
          
        </div>
      </div>
    </div>
  </li><!-- media -->
{/volist}